import axios from "axios";
import { easyPost, getAxios, getFileAxios, postAxios, postFileAxios } from "./axios";

export const getSentenceScore = (sentence?: string) => {
  return postAxios({
    url: `/test/score`,
    data: {
      sentence,
    },
  });
};

export const downloadCsvFile = () => {
  return getFileAxios({
    url: `/test/download`,
  });
};

export const getSentencesScoreAndId = (formData: any) => {
  return postFileAxios({
    url: `/test/csv/score`,
    data: formData,
  });
};

export const getSeriesData = (formData: any) => {
  return postFileAxios({
    url: `/test/getseries`,
    data: formData,
  });
};

export const getDiffData = () => {
  return getAxios({
    url: `/test/getdiff`,
  });
};

export const getPremodelResult = (formData: any) => {
  return easyPost({
    url: `/test/premodel/result`,
    data: formData,
  })
};

export const getDenoisyData = () => {
  return getAxios({
    url: `/test/getdenoisy`,
  });
};
